import request from '@/utils/request'

// 查询订单管理列表
export function listMedicineOrder(query) {
  return request({
    url: '/medical/medicineOrder/list',
    method: 'get',
    params: query
  })
}

// 查询患者列表
export function listPatient(query) {
  return request({
    url: '/doctor/patient/list',
    method: 'get',
    params: query
  })
}

// 查询处方列表
export function listPrescription(query) {
  return request({
    url: '/medical/prescription/list',
    method: 'get',
    params: query
  })
}

// 查询订单管理详细
export function getMedicineOrder(id) {
  return request({
    url: '/medical/medicineOrder/' + id,
    method: 'get'
  })
}

// 新增订单管理
export function addMedicineOrder(data) {
  return request({
    url: '/medical/medicineOrder',
    method: 'post',
    data: data
  })
}

// 修改订单管理
export function updateMedicineOrder(data) {
  return request({
    url: '/medical/medicineOrder',
    method: 'put',
    data: data
  })
}

// 删除订单管理
export function delMedicineOrder(id) {
  return request({
    url: '/medical/medicineOrder/' + id,
    method: 'delete'
  })
}
